<template>
	<view class="content">
		<view v-for="(item,index) in lisData" :key="index" class="commonBox">
			<view class="flexsb commonBoxTop" @click="goInfo(item.SpellGroup_sn)">
				<view class="fs20 C333">团号：{{item.SpellGroup_ID}}</view>
				<view class="commonBoxTopR" style="display: flex;">
					<view style="padding-top: 6upx;" class="" v-if="item.avatar_list.length">
						<image style="width: 50upx;height: 50upx;border-color: #f5639d;" :src="item.avatar_list[0].avatar||'/static/images/userImg111.png'" mode=""></image>
					</view>
					<view style="padding-top: 9upx;" class="commonBoxTopRR">
						<image v-if="index2>0" v-for="(item2,index2) in item.avatar_list" style="width: 45upx;height: 45upx;" :src="item2.avatar" mode=""></image>						
					</view>
				</view>
			</view>
			<view style="display: flex;justify-content: space-between;" class="commonBoxTop fs20 C333">
				<view class="">
					<image style="width: 40upx;height: 40upx;display: inline-block;position: relative;top: 8upx;" src="../../static/images/PTRecord_store.png" mode=""></image>
					{{item.store_name}}							
				</view>
				<view style="line-height: 69upx;color: #999;" class="">
					<text v-if="item.Role == 1">
						由我创建
					</text>
					<text v-if="item.Role == 2">
						我参与的
					</text>
				</view>
			</view>
			<view class="commonBoxLi flexsb" @click="goInfo(item.SpellGroup_sn)">
				<view style="width: 140upx;" class="">
					<image style="width: 136upx;height: 136upx;" :src="item.goods_image" mode=""></image>
				</view>
				<view style="width: 550upx;" class="">
					<view style="height: 50upx;" class="oneLine fs20 C333">{{item.goods_name}}</view>
					<view class="fs18">拼团价：<text class="Cfe0000 bold">￥{{item.goods_price}}</text></view>
					<view class="fs18 C999">参与时间：{{item.Addtime | formaDate('yyyy-mm-dd-hh-mm-ss')}}</view>
				</view>
			</view>
			<view style="border-top: 1upx solid #F4F4F4;" class="commonBoxTop fs20 C333">
				订单编号：{{item.Order_sn}}			
			</view>
		</view>
		
		<view v-if="lisData.length<=0">
			<image style="width: 100%;" :src="`${picUrl}/InfoNull.png`" mode="widthFix"></image>
		</view>
		
	</view>
	
	
</template>

<script>
	export default {
		data(){
			return{				
				lisData:[]
			}
		},
		onLoad(options) {
			this.getLis()

		},
		onShow() {
			
		},
		methods:{
			goInfo(sn){
				uni.navigateTo({
					url:'info?SpellGroup_sn='+sn
				})
			},
			getLis(){
				var that=this;
				this.$util.request({
					url: '/mobile/index.php?act=spellgroup&op=activity_record_list',
					method: 'get',
					data: {
					},
				}).then(function(res) {
					console.log(res)
					if(res){
						that.lisData=res.datas.list	
					}	
					// if(res.datas.list.length == 0){
					// 	uni.showToast({
					// 		title:"没有数据",
					// 		icon:"none"
					// 	})
					// }
				})
			}
			
		}
	}
</script>

<style>
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
	 }
	view{
		box-sizing: content-box;		
	}
	uni-page-body {
		background-color: #FFFFFF;
		color: rgb(102, 102, 102);
	}
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
	 }
	.lh20{
		line-height: 20upx;
		height: 20upx;
	}
	.lh25{
		line-height: 25upx;
	}
	.lh30{
		line-height: 30upx;
	}
	.lh35{
		line-height: 35upx;
	}
	.lh40{
		line-height: 40upx;
	}
	.lh45{
		line-height: 45upx;
	}
	.lh50{
		line-height: 50upx;
	}
	.lh80{
		line-height: 80upx;
	}
	.lh100{
		line-height: 100upx;
	}
	.C000{
		color: #000000;
	}
	.Ce13d97{
		color: #ff4300;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.Cc06{
		color: #ff4300;
	}
	.mt55mb30{
		margin-top: 55upx;
		margin-bottom: 30upx;
	}
	.Cfff{
		color: #FFFFFF;
	}
	
	.flex{		
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-content: space-between;
	}
	.paddingL20{
		padding-left: 20upx;
	}
	.C999{
		color:#999 ;
	}
	.Cff0101{
		color:#ff0101 ;
	}
	.Cc00251{
		color: #c00251;
	}
	.strick{
		text-decoration: line-through;
	}
	.Cfe0000{
		color: #ff4300;
	}
	.line1{
		width: 430upx;
	}
	.hide{
		display: none;
	}
	.marginB20{
		margin-bottom: 20upx;
	}
	.oneLine{
		  white-space:nowrap;
		  overflow:hidden;
		  text-overflow:ellipsis;
	}
	.twoline{
	   overflow : hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.pl20{
		padding-left: 20upx;
	}
	.positionT{
		position: relative;
		top: 50upx;
	}
	.paddingB15{
		padding-bottom: 15upx;
	}
	.borderB{
		border-bottom: 1px solid #f4f4f6;
	}
	.borderT{
		border-top: 1px solid #f4f4f6;
	}
	.gl{
		position: absolute;
		right: 30upx;
	}
	.pr30{
		padding-right: 30upx;
	}
	.C333{
		color: #333333;
	}
	.C666{
		color: #666666;
	}
	.Cf00{
		color: #ff0000;
	}
	
	.bold{
		font-weight: bold;
	}
	.C1d1d1d{
		color:#1d1d1d ;
	}
	.fl{
		float: left;
	}
	.fr{
		float: right;
	}
	.tac{
		text-align: center;
	}
	.Ce5258e{
		color: #e5258e;
	}
	.Cccc{
		color: #CCCCCC;
	}
	.Cf7881c{
		color: #f7881c;
	}
	uni-page-body {
		background-color: #FFFFFF;
		color: rgb(102, 102, 102);
	}		
	.fs30{
		/* font-size: 30upx */
		font-size: 45upx
	}
	.fs26{
		font-size:39upx
		/* font-size: 26upx */
	}
	.fs12{
		font-size: 18upx
		/* font-size: 12upx */
	}
	.fs16{
		font-size: 24upx
		/* font-size: 16upx */
	}
	.fs14{
		font-size: 21upx
		/* font-size: 14upx */
	}
	.fs15{
		font-size: 22.5upx
		/* font-size: 15upx */
	}
	.fs27{
		font-size: 40.5upx
		/* font-size: 27upx */
	}
	.fs18{
		font-size: 27upx
		/* font-size: 18upx */
	}
	.fs28{
		font-size: 42upx
		/* font-size: 28upx */
	}
	.fs10{
		font-size: 15upx
		/* font-size: 10upx */
	}
	.fs30{
		font-size: 45upx
		/* font-size: 28upx */
	}
	.fs36{
		font-size: 54upx
		/* font-size: 28upx */
	}
	
	.fs24{
		font-size: 36upx
		/* font-size: 24upx */
	}
	.fs20{
		font-size:30upx
		/* font-size: 20upx */
	}
	.fs22{
		font-size:33upx
		/* font-size: 22upx */
	}
	.fs21{
		font-size: 31.5upx
		/* font-size: 21upx */
	}	
	.flexsb{
		display: flex;
		justify-content: space-between;
	}
	.plr20{
		padding: 0 20upx;
	}
	.plr10{
		padding: 0 10upx;
	}
	.f6f4f5{
		background-color: #fff;
	}	
	.Cf74d0f{
		color: #f74d0f;
	}
	.C2dc34d{
		color: #2dc34d;
	}
	.mt20{
		margin-top: 20upx;
	}
	.ti2{
		text-indent: 2em;
	}
	
	.content{
		min-height: 100vh;
		background-color: #f6f4f5;
		border-top: 1upx solid #F4F4F4;
		
	}
	.commonBox{		
		background-color: #FFFFFF;
		margin-bottom: 15upx;
		box-sizing: border-box;
		width: 100%;
		min-height: 365upx;
	}
	.commonBoxTop view{
		display: inline-block;
	}
	.commonBoxTop{
		width: 100%;
		box-sizing: border-box;
		border-bottom: 1upx solid #F4F4F4;
		padding: 0 24upx;
		height: 70upx;
		line-height: 70upx;
		
	}
	.commonBoxLi{
		padding: 0 25upx;
		box-sizing: border-box;
		padding-top: 12upx;
	}
	.commonBoxTopR image{
		border-radius: 50%;
		border: 4upx solid #FFffFF;
		
	}
	.commonBoxTopRR image{
		margin-left: -25upx;
	}
	
</style>


